#ifndef _SPI_H_
#define _SPI_H_

// SPI模式定义
#define SPI_Mode_0 0
#define SPI_Mode_1 1
#define SPI_Mode_2 2
#define SPI_Mode_3 3

void SPI_SetMode(unsigned char Mode);
void SPI_Init(unsigned char Mode);
unsigned char SPI_TransFer(unsigned char Data);
void SPI_CS_Enable();
void SPI_CS_Disable();

#endif